import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.UseDemoService;

import java.io.IOException;

/**
 * @description:
 * @author: jhy
 * @time: 2021/5/7 16:16
 */
public class Consumer {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        context.start();
        UseDemoService useDemoService = context.getBean(UseDemoService.class);
        useDemoService.sayHelloRpc();
        System.in.read();
    }
}
